package com.byjh.app.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.byjh.app.mapper.QuestionPracticeRecordMapper;
import com.byjh.app.domain.QuestionPracticeRecord;
import com.byjh.app.service.IQuestionPracticeRecordService;

/**
 * 顺序练习记录Service业务层处理
 * 
 * @author Dhq
 * @date 2025-02-21
 */
@Service
public class QuestionPracticeRecordServiceImpl implements IQuestionPracticeRecordService 
{
    @Autowired
    private QuestionPracticeRecordMapper questionPracticeRecordMapper;

    /**
     * 查询顺序练习记录
     * 
     * @return 顺序练习记录
     */
    @Override
    public QuestionPracticeRecord selectQuestionPracticeRecordByUserId(Long userId)
    {
        return questionPracticeRecordMapper.selectQuestionPracticeRecordByUserId(userId);
    }


    /**
     * 新增顺序练习记录
     * 
     * @param questionPracticeRecord 顺序练习记录
     * @return 结果
     */
    @Override
    public int insertQuestionPracticeRecord(QuestionPracticeRecord questionPracticeRecord)
    {
        return questionPracticeRecordMapper.insertQuestionPracticeRecord(questionPracticeRecord);
    }

}
